home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Utilities
/
MW II Launcher ƒ
/
MW Launch note
< prev
Wrap
Text File
|
1989-06-20
|
3KB
|
63 lines
Those of you who have got MacWrite II will by now be either pretty
fed up at not being able to double-click on old MacWrite files or else
kept a copy of MacWrite on your disk just to do this. Well, I got pretty
fed up, so here is a simple application that just launches MacWrite II
when old MacWrite files are double-clicked. Simply put it into the
same folder as MacWrite II. Throw away MacWrite 5.0 or 4.5 first before
copying MW launcher on to your disk. It may be necessary in some
circumstances to rebuild the desktop (hold down option-command keys
when launching the Finder).
NB. The program is pretty crude: it simply launches the 1st application
in the same folder as itself that has a Finder creator of "MWII". Actually,
the creator is read from the 'fCre' resource in the launcher, so you can
change this to launch other apps if you want (don't forget to change the
BNDL resource). You might want to do this for MacDraw for example.
Many thanks to Apple for Tech Note 126 from which I have shamelessly
copied most of the code.
Have fun!
Sak Wathanasin
Linotype Ltd
R & D Dept
Bath Road
Cheltenham
Glos. GL53 7LR
UK
(+44) 242 222 333 x206
This program and source code is in the public domain.
----
How to hack the launcher to launch other appls
Suppose you want to make it launch MacDraw II when you dbl-click on MD 1.x
docs. Here are the steps:
1) copy "MW launcher" to blank floppy (it's quicker & easier to rebuild
the desktop on a floppy)
2) rename it (eg "MD launcher")
3) launch ResEdit
4) open orig appl if you have it
5) copy the BNDL, ICN#, and FREF resources
6) Paste into launcher (yes, you want to replace resources with same id).
If you don't have the orig appl, concoct BNDL, FREF & ICN# resources
(see IM 3 Chp 1).
7) Create a signature resource (eg MDRW id 0); this doesn't have
to contain anything, but it's useful to put a timestamp in it.
8) Delete the "MACA" resource (which was the signature resource for
the MW launcher)
9) close the file and save the changes
10) select the file and "Get Info" on it
11) change the creator to be the same as the signature resource (eg MDRW)
NB the system is case sensitive
12) save changes and quit ResEdit
13) eject the floppy & reinsert while holding down cmd and opt keys
14) "Yes", you want to rebuild desktop
15) Trash the orig appl on your HD
16) Copy the launcher into the same folder as the new appl you want to
launch (eg MacDraw II)
17) Test by dbl-clicking an old doc.
18) If it doesn't work, you may have to rebuild the desktop on your HD.